package mldn.producer.impl;

import mldn.producer.IMessageConsumserService;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * description:
 * Created by gy on 2017/8/21.
 */
@Service
public class MessageProducerServiceImpl implements IMessageConsumserService {


    @Override
    @RabbitListener(queues = "mldn.microboot.queue")
    public void receiveMessage(String msg) {
        System.out.println(" receive msg " + msg);
    }
}
